package com.example.hotelsystem.service.impl;

import com.example.hotelsystem.entity.Floor;
import com.example.hotelsystem.mapper.FloorMapper;
import com.example.hotelsystem.service.FloorService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.hotelsystem.vo.list.ListVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Lee
 * @since 2020-10-14
 */
@Service
public class FloorServiceImpl extends ServiceImpl<FloorMapper, Floor> implements FloorService {
    @Autowired
    private FloorMapper floorMapper;

    @Override
    @Transactional
    public List<ListVO> floorListVO(){
        List<ListVO> list = floorMapper.floorListVO();
        return list;
    }
}
